﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kokomo.Mirror.CliMetadata
{
	class CliPointerType : CliSyntheticType
	{
		private Type _elementType;

		internal CliPointerType(
			CliMemberBasicInfo basicInfo,
			Type elementType
			)
			: base(basicInfo, elementType)
		{
			this._elementType = elementType;
		}

		public override string Name
		{
			get { return this._elementType.Name + "*"; }
		}
		protected override bool IsPointerImpl()
		{
			return true;
		}

		public override Type Reflect()
		{
			return this._elementType.Reflect().MakePointerType();
		}
	}
}
